﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    [Table("customer_operation_log")]
    [Index(nameof(CompanyId), Name = "CompanyId")]
    [Index(nameof(OemId), Name = "OemId")]
    [Index(nameof(UserId), Name = "UserId")]
    [Index(nameof(CustomerId), Name = "CustomerId")]
    public class CustomerOperationLog : BaseModel
    {

        public int Id { get; set; }

        public int OemId { get; set; }

        public int CompanyId { get; set; }
        public int GroupId { get; set; }

        public int UserId { get; set; }
        public int CustomerId { get; set; }

        public string Content { get; set; }
#nullable enable
        public User ?User { get; set; }
#nullable restore

    }
}
